<?php if(!defined("PATH_HD"))exit;?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://localhost/company1/sccms/admin/tpl/source/css/style.css" rel="stylesheet" type="text/css">
</head>

<body>
	<div id="htbody">
    	<span class="httitle">商品添加</span>
        <div class="addform">
        	<form method="post" action="http://localhost/company1/index.php/admin/proc/add" enctype="multipart/form-data">
            	<table border='1' width='720px' cellpadding="0" cellspacing="0">
                	<tr>
                    	<th width="15%">产品名：</th>
                    	<td><input type="text" name="pname"></td>
                    </tr>
                    <tr>
                    	<th width="15%">图片：</th>
                    	<td><input type="file" name="pimg" ></td>
                    </tr>
                    <tr>
                    	<th width="15%">价格：</th>
                    	<td><input type="text" name="price"></td>
                    </tr>
                    <tr>
                    	<th width="15%">类别：</th>
                    	<td>
                    		<select name="cid">
								<?php if(!empty($category)){$listCount = count($category);$list_id1=0;?><?php foreach($category as $key=>$c){?><?php $list_id1+=1;?>
								<option value="<?php echo $c['cid'];?>"><?php echo $c['html'];?><?php echo $c['cname'];?></option>
								<?php }?><?php }?>
							</select>
                    	</td>
                    </tr>
                    <tr>
                    	<th width="15%">产品说明：</th>
                        <td>
							<script type="text/javascript">HD_UEDITOR_ROOT="http://localhost/company1/hdphp/org/ueditor/";</script><script type="text/javascript" src="http://localhost/company1/hdphp/org/ueditor/editor_config.js"></script>
		<script type="text/javascript" src="http://localhost/company1/hdphp/org/ueditor/editor_all.js"></script>
		<link rel="stylesheet" href="http://localhost/company1/hdphp/org/ueditor/themes/default/ueditor.css"><script type="text/plain" name="pdesc" id="hd_ueditor360" 690px></script><script type="text/javascript" >var editorOption = {
                        autoFloatEnabled:false,
                         
                         imageUrl:"http://localhost/company1/index.php/admin/proc/ueditorupload",
                         imagePath:"",
                         fileUrl:"http://localhost/company1/index.php/admin/proc/ueditorupload",
                         filePath:"",
                         maximumWords:100,
                         minFrameHeight:200
                    };var editor = new baidu.editor.ui.Editor(editorOption);
                    editor.render("hd_ueditor360")</script>
						</td>
                    </tr>
					<tr><td colspan="2" align="center">
							<input type="submit" name="submit" value="添加"/>
						</td>
					</tr>
                </table>
            </form>
        </div>
    </div>
</body>
</html>